<ion-view view-title="编辑资料">
	<ion-content style="background-color:#f5f5f5;">

		<div class="list" style="margin-top: 10px;">
			
			<div class="item item-button-right" style="height: 60px;" ng-click="editHeadPic()">
			    <div style="margin-top: 3px;">头像</div>
			    <button class="button" style="background-color: white;top:3px;">
			      	<img ng-if="userInfo.headPic!=null" ng-src="http://image.credit-manage.com/{{userInfo.headPic}}" width="50" height="50" style="border-radius: 50px;" />
					<img ng-if="userInfo.headPic==null" ng-src="img/my/head.png" width="50" height="50" />
			    </button>
			</div>

			<a class="item item-icon-right" href="#/tab/my/editNick">
				<div style="float: left;width: 50%;">昵称</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.nickName==null||userInfo.nickName==''">昵称未设置</span>
					<span ng-if="userInfo.nickName!=null&&userInfo.nickName!=''">{{userInfo.nickName}}</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
			
			<a class="item">
				<div style="float: left;width: 50%;">真实姓名</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.name!=null&&userInfo.name!=''">{{userInfo.name}}</span>
					<span ng-if="userInfo.name==null||userInfo.name==''">--.--</span>
				</div>
			</a>
			
			<a class="item">
				<div style="float: left;width: 50%;">性别</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.sex!=null&&userInfo.sex!=''">{{userInfo.sex}}</span>
					<span ng-if="userInfo.sex==null||userInfo.sex==''">--.--</span>
				</div>
			</a>
			
			<a class="item">
				<div style="float: left;width: 50%;">年龄</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.age!=null&&userInfo.age!=''">{{userInfo.age}}</span>
					<span ng-if="userInfo.age==null||userInfo.age==''">--.--</span>
				</div>
			</a>
			<a class="item">
				<div style="float: left;width: 50%;">手机</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.age!=null&&userInfo.age!=''">{{userInfo.phone}}</span>
					<span ng-if="userInfo.age==null||userInfo.age==''">--.--</span>
				</div>
			</a>

		</div>
		
		<div class="list">

			<a class="item item-icon-right" href="#/tab/my/editCard" ng-if="userInfo.isCertificate==1" >
				<div style="float: left;width: 50%;">修改银行卡</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.isCertificate==1">已实名</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>			
			<a class="item item-icon-right" ng-if="userInfo.isCertificate==0" >
				<div style="float: left;width: 50%;">修改银行卡</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.isCertificate==0">未实名</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
		<div class="list">

			<a class="item item-icon-right" href="#/tab/my/editPhone">
				<div style="float: left;width: 50%;">修改手机号</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-right" href="#/tab/my/editPassword">
				<div style="float: left;width: 50%;">修改登录密码</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
			
			<a class="item item-icon-right" href="#/tab/my/editDealCode">
				<div ng-if="userInfo.isDealCode==1" style="float: left;width: 50%;">修改交易密码</div>
				<div ng-if="userInfo.isDealCode==0" style="float: left;width: 50%;">设置交易密码</div>
				<div style="float: left;width: 50%;text-align: right;font-size:13px;">
					<span ng-if="userInfo.isDealCode==0">未设置</span>
					<span ng-if="userInfo.isDealCode==1">已设置</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		
	</ion-content>
</ion-view>